Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Troubleshooting > XULRunner and XPages in Notes Client
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Community articleXULRunner and XPages in Notes Client
Added by ~Karl Kigerosterikle on March 10, 2010 | Version 1
expanded Abstract
collapsed Abstract
Recently I had a couple of instances where XPages in the Notes Client displayed contents slightly differently to how it was displayed on browsers. With help from an expert, I was pointed in the direction of the XULRunner.
Tags: 8.5.1, XPages, client
ShowTable of Contents
HideTable of Contents
    • 0.0.1 About the Author

The first example I had was a view with some fixed width columns to ensure the layout was clean, because the views were held in a container that adjusted to the size of the screen. Everything looked fine on the web (in both Internet Explorer and Firefox), with values wrapping accordingly. But in the Notes Client, sometimes a column holding a reference number would wrap, but on other occasions it expanded and would not wrap, as I found with the value "XXXXXXXX-XXXXXXXXX-SERVICES-21-10-2008-MR-10" (I've replaced some of the content with X to keep it more generic).

After trying various things and a bit of head-scratching, I despatched a desperate tweet and a very helpful member of the community informed me that XPiNC used an XULRunner equivalent to Firefox 2. After a fair amount of hunting on the web I learned something more about XULRunner, predominantly from this postexternal link, that it is a rendering engine developed by the Mozilla Foundation. Some more hunting on word wrap in table cells in Firefox 2 offered a few solutions. The most common was to force a carriage return at the appropriate place, which is fine if you're creating a website and coding the content yourself, more challenging if you're building applications. Another offered some CSS formatting to set "table-layout: fixed" on the table and "white-space: -moz-pre-wrap;" on the relevant column. This would have been ideal, but I couldn't get it to work (that may well be because I was doing something wrong, my web development experience is not immense!). Finally the fall-back was to set the se for the table cell to "overflow: hidden". This meant that part of the reference number was not visible, but because the application was based on a spreadsheet and because the end users could open the relevant documents to see the full value, it sufficed for my requirements.

A couple of days later I was working on a personal XPages application which holds documents at different levels of a hierarchy. They're not response documents, but a Position field allows me to order them correctly and I used a repeat control containing an empty xp:span with the style "padding-left: 20px" to indent to the correct hierarchical level and follow it with the XSPViewEntry title. This looked nice on Internet Explorer and Firefox, but when I happened to open the application in the Notes Client, I got a blank line with the title on the following line. My thoughts immediately jumped back to the XULRunner, so my first attempt was to set the span's style to "display: inline", but it didn't work. A quick look at the source, and I immediately realised the problem - the repeat control creates a div around the contents. The repeat was within another repeat, so it was not possible to use the header and footer facets, as Steve Castledineexternal link describes. But setting the style of the xp:repeat to "display: inline" instead of the span's style solved the problem.

As of 8.5.1 FP1 it's still relevant.

About the Author

Paul Withers is a Domino Developer at Intec Systems Ltd. The original post of this and other tips / observations / tutorials are available at the Intec Blogexternal link 
expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (3)
collapsed Versions (3)
Version Comparison     
VersionDateChanged by              Summary of changes
3Sep 26, 2016, 6:39:05 AM~Pippy Asaacheklen  
2Apr 4, 2016, 2:25:22 PM~Nita Feznitexader  Minor change
This version (1)Mar 10, 2010, 6:01:05 PM~Karl Kigerosterikle  
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility